package com.wanfu.dao;

import com.wanfu.entity.UserToRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserToRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserToRole record);

    int insertSelective(UserToRole record);

    UserToRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserToRole record);

    int updateByPrimaryKey(UserToRole record);

    List<UserToRole> findRoleByUserId(@Param("userId")Integer userId);
}